import { _decorator } from 'cc';
import { app } from 'db://app-game/core/app';
import { Root } from 'db://app-game/core/Root';
import { ecs } from 'db://app-game/libs/ecs/ECS';
import { UIConfigData } from './game/common/config/GameUIConfig';
import { Initialize } from './game/ecs/scene/initialize/Initialize';
import { smc } from './game/ecs/singleton/SingletonModuleComp';
const { ccclass, property } = _decorator;

@ccclass('Main')
export class Main extends Root {
  protected initGui(): void {
    app.gui.init(UIConfigData);
  }
  protected run() {
    // 1.设置单列加载实例页面
    smc.initialize = ecs.getEntity(Initialize);
  }
}
